/*
 * PositionMessage.java
 *
 * Created on 4 maart 2008, 15:13
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package racer.client.data;

import racer.client.data.interfaces.IPositionMessage;
/**
 *
 * @author Lieven Baeyens
 */
//indien nodig...we zullen later nog zien
//wrs kunnen we rechtstreeks alles in 1 string zetten zonder messageobject
public class PositionMessage extends NetworkMessage implements IPositionMessage {
	public int ID;
	public double xvalue;
	public double yvalue;
	public double angle;


	//als de positie niet wijzigt

	public PositionMessage(int id) {
		super(id);
		//this.ID=id;
		xvalue = 0.0;
		yvalue = 0.0;
		angle = 0.0;
	}
	/*
public PositionMessage(int id,double xvalue,double yvalue,int angle) {
      this.ID=id;
      this.xvalue = xvalue;
      this.yvalue = yvalue;
      this.angle = angle;
}

public void setMessage(int id,double xvalue,double yvalue,int angle) {
      this.ID=id;
      this.xvalue = xvalue;
      this.yvalue = yvalue;
      this.angle = angle;
}

public int getID(){
      return ID;
  }

public void setID(int id){
      this.ID=id;
}

public int getAngle(){
      return angle;
}  
public void setAngle(int angle){
      this.angle=angle;
}
public double getXvalue(){
      return xvalue;

}  

public void setXvalue(double xvalue){
      this.xvalue=xvalue;
}

public double getYvalue(){
      return yvalue;
}  

public void setYvalue(double yvalue){
      this.yvalue=yvalue;
}
	 */
//	id op voorhand setten?bij netwerkinit
	public String getFormedMessage(double xvalue,double yvalue,int angle,int active_tile){
		return ":=:1;fromID="+fromID+";X="+xvalue+";Y="+yvalue+";A="+angle+";AT="+active_tile + ":=:";
	}
}
